package com.sdp.wx.view;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdp.core.bizc.annotation.ViewColumn;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class WxAssetsScrapReportDetailView extends Model<WxAssetsScrapReportDetailView> {

	private static final long serialVersionUID = 1L;
	
	/**
     * 内码
     */
	@ViewColumn("a.key_id")
    private String keyId;
    
	/**
     * 资产编号
     */
	@ViewColumn("a.asset_no")
    private String assetNo;

    /**
     * 资产id
     */
	@ViewColumn("a.asset_id")
    private String assetId;

    /**
     * 设备名称
     */
	@ViewColumn("a.device_name")
    private String deviceName;

    /**
     * 设备型号
     */
	@ViewColumn("a.device_type")
    private String deviceType;

    /**
     * 使用部门
     */
	@ViewColumn("a.use_dept_no")
    private String useDeptNo;
    
    /**
     * 报告id
     */
	@ViewColumn("a.report_id")
    private String reportId;
    
    /**
     * 报废状态
     */
	@ViewColumn("a.scrap_status")
    private String scrapStatus;
	
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ViewColumn("a.create_time")
	private LocalDateTime createTime;
	
	/**
     * 生产厂商
     */
	@ViewColumn("a.manufacturer_name")
    private String manufacturerName;
    
    /**
     * 启用日期
     */
	@ViewColumn("a.use_date")
    private LocalDate useDate;
    
    /**
     * 原价
     */
	@ViewColumn("a.original_price")
    private BigDecimal originalPrice;
    
    /**
     * 审批状态
     */
	@ViewColumn("b.report_status")
    private String reportStatus;
    
    /**
     * 报告编号
     */
	@ViewColumn("b.report_code")
    private String reportCode;
    
}
